package com.meteor.api.feign.newFeign;

import com.meteor.api.feign.ServerNames;
import com.meteor.api.feign.param.CommunityParam;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 系统服务
 *
 *  @author lynn
 */
@FeignClient(name = ServerNames.NEW_SERVER_NAME, contextId = "community")
public interface NewFeign {

    /**
     * 根据社区id获取组织id
     *
     * @param id
     * @return 是否发送成功
     */
    @GetMapping(value = "new/community/{id}")
    String getCommunity(@PathVariable("id") String id);


    @PostMapping(value = "new/community/getCommunityList")
    String getCommunityList(@RequestBody CommunityParam communityParam);


    /** 查询全部社区 */
    @GetMapping("new/community/list")
    String getList();

}
